5e7a9465d3f311b3455f0a724f0d8720faa0371d,cdap-security/src/test/java/co/cask/cdap/security/server/ExternalAuthenticationServerTestBase.java,ExternalAuthenticationServerTestBase,testValidAuthentication,#,205

Before Change


  @Test
  public void testValidAuthentication() throws Exception {
    HttpClient client = getHTTPClient();
    String uri = String.format("%s://%s:%d/%s", getProtocol(), server.getSocketAddress().getHostString(),
                               server.getSocketAddress().getPort(), GrantAccessToken.Paths.GET_TOKEN);

    HttpGet request = new HttpGet(uri);

After Change


  @Test
  public void testValidAuthentication() throws Exception {
    HttpClient client = getHTTPClient();
    String uri = String.format("%s://%s:%d/%s", getProtocol(), server.getSocketAddress().getAddress().getHostAddress(),
                               server.getSocketAddress().getPort(), GrantAccessToken.Paths.GET_TOKEN);

    HttpGet request = new HttpGet(uri);